/* eslint-disable import/prefer-default-export */
import request from '@/utils/request';

// 列表接口
export async function getProtList(params) {
  return request(`/nsApi/suppProto/pageList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 获取下载模板信息：fileId fileName
export async function getDownloadInfo(params) {
  return request(`/nsApi/sendService/template/download`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 获取上传进度数据
export async function getUploadProgress(params) {
  return request(`/csApi/batchTask/getBatTaskInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 发单调整更换协议上传
export async function uploadFileProt(params) {
  return request(`/nsApi/sendService/change/prot`, {
    method: 'POST',
    body: params,
  });
}
